<?php 
if(!defined('ADMIN')){
	exit('Access Denied');
}

$act_arr=array('list','addedi','del','set');
?>
<script>
$(function(){
    $('#node_id').change(function(){
	    var node = $(this).val();
		$('#node').val(node);
	});
	$('#mod_id').change(function(){
	    var node = $(this).find("option:selected").text();
		$('#mod').val(node);
	});
	$('#act_id').change(function(){
	    var node = $(this).find("option:selected").text();
		$('#act').val(node);
	});
})
</script>
<div class="pageContent">
<form action="index.php?mod=<?=MOD?>&act=<?=ACT?>" method="post"  class="pageForm required-validate"  name="form1" onsubmit="return validateCallback(this, dialogAjaxDone);">
<input type="hidden" name="id" value="<?=$row['id']?>" />
<input type="hidden" name="sub" value="save" />
<div class="pageFormContent" layoutH="50">
<p><label>名称：</label>
<input name="title" type="text" size="20"  id="title" value="<?=$row['title']?>" class="required" /></p>
<p><label>主导航：</label>
<?=select($topnav_arr,$row['topnav'],'topnav')?>&nbsp;<span>新建节点时选择，新建模块可不选</span></p>
<p><label>节点：</label>
<input name="node" type="text" size="20"  id="node" value="<?=$row['node']?$row['node']:'base'?>"  class="required"  />&nbsp;<?=select($node_arr,$row['node'],'node_id')?></p>
<p><label>模块：</label>
<input name="mod" type="text" size="20"  id="mod" value="<?=$row['mod']?>" />&nbsp;<?=select($mod_arr,$row['mod'],'mod_id')?></p>
<p><label>行为：</label>
<input name="act" type="text" size="20"  id="act" value="<?=$row['act']?>" />&nbsp;<?=select($act_arr,'','act_id')?></p>
<p><label>附加值：</label>
<input name="addtion" type="text" size="20"  id="addtion" value="<?=$row['addtion']?>" />&nbsp;<?=select($act_arr,'','act_id')?></p>
<p><label>状态：</label>
<?=html_radio($hide_arr,$row['hide'],'hide')?></p>
<p><label>排序：</label>
<input name="sort" type="text" id="sort" size="20" value="<?=$row['sort']?$row['sort']:$row['listorder']?>" />&nbsp;<span>越大越靠前</span></p>
</div>
		<div class="formBar">
			<ul>
				<!--<li><a class="buttonActive" href="javascript:;"><span>保存</span></a></li>-->
				<li><div class="buttonActive"><div class="buttonContent"><button type="submit">保存</button></div></div></li>
				<li>
					<div class="button"><div class="buttonContent"><button type="button" class="close">取消</button></div></div>
				</li>
			</ul>
		</div>
</form>
</div>
